package com.dys.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: 疾风
 * @ClassName: MyController
 * @Description: 控制器
 * @CreateDate: 2024/11/21
 * @Version: v1.0.0
 */
@Controller
public class MyController {

    @RequestMapping(value = "/hello")
    public String hello(Model model){
        model.addAttribute("message","hello,i am thymeleaf");
        return "hello";
    }

    @RequestMapping(value = "/login")
    public String login() {
        return "login";
    }
}
